package com.education.service.trade.feign.fallback;

import com.education.result.R;
import com.education.service.trade.feign.UcenterMemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 远程调用 - 熔断保护
 * Created by Lance on 2020/07/09 17:48
 */
@Slf4j
@Service
public class UcenterMemberServiceFallBack implements UcenterMemberService {

    /**
     * 根据会员ID查询会员信息 - 远程调用
     * @param memberId
     * @return
     */
    @Override
    public R getMemberDtoById(String memberId) {
        log.warn("熔断保护");
        return R.error();
    }
}
